const couponDao = require('../dao/couponDao');



module.exports.insert = async function(coupon){
    return await couponDao.insert(coupon);
}

module.exports.find = async function(page,searchParams){
    return await couponDao.find(page,searchParams);
}

module.exports.findById = async function(id){
    return await couponDao.findById(id);
}

module.exports.delete = async function(id){
    return await couponDao.delete(id);
}

module.exports.update = async function(coupon){
    return await couponDao.update(coupon);
}
